﻿@model FogBugzPd.Web.Models.Account.LocalLoginViewModel

@{
	ViewBag.Title = "Login";
	Layout = "~/Views/Shared/_Layout.cshtml";
}
@using (Html.BeginForm("LocalLogin", "Account", FormMethod.Post, new { @class = "form-horizontal" }))
{
	<fieldset>
		<legend>Log in</legend>
		<div class="control-group error">
			<div class="controls">
				<span class="help-inline">
					@(Model.ErrorMessage)
				</span>
			</div>
		</div>
		<div class="control-group">
			@Html.LabelFor(model => model.UserName, new { @class = "control-label" })
			<div class="controls">
				@Html.TextBoxFor(model => model.UserName)
				<span class="help-inline error">@Html.ValidationMessageFor(model => model.UserName)</span>
			</div>
		</div>
		<div class="control-group">
			@Html.LabelFor(model => model.Password, new { @class = "control-label" })
			<div class="controls">
				@Html.PasswordFor(model => model.Password)
				<span class="help-inline error">@Html.ValidationMessageFor(model => model.Password)</span>
			</div>
		</div>
		<div class="control-group">
			<div class="controls">
				<label class="checkbox">
					@Html.CheckBoxFor(model => model.RememberMe)@Html.LabelFor(model => model.RememberMe)
				</label>
				<button type="submit" class="btn btn-primary">
					Login</button>
			</div>
		</div>
	</fieldset>
}